from django.contrib import admin
from project import models

admin.site.site_header = 'RayMin'
admin.site.site_title = 'RayMin'


class ProjectAdmin(admin.ModelAdmin):
    list_display = ['id', 'receipt', 'register_name', 'license_num', 'payment_account', 'is_print', 'is_abandon', 'create_time']
    search_fields = ['receipt', 'register_name', 'license_num', 'payment_account', 'is_print', 'is_abandon',]
    list_display_links = ['id', 'receipt']
    list_filter = ['register_name',  'license_num', 'payment_account']
    max_num = 5



# class ContractAdmin(admin.ModelAdmin):
#     list_display = ['id', 'name', 'type', 'contract_person', 'company']
#     list_display_links = ['id', 'name']
#     search_fields = ['name', 'type']


# admin.site.register(GlobalSettings)
admin.site.register(models.Item, ProjectAdmin)
